<html>
<head>

</head>
<body>
<a href="/logout/">Выйти</a>
<a href="/export/">Назад</a>
<a href="/admin/">Главная</a>
<table border="1" class="" id="t">
    <thead>
    <tr>
        <th>Постачальник</th>
        <th>Категорія постачальника</th>
        <th>Номер ціни</th>
        <th>Надбавка до ціни</th>
        <th>Дії</th>
    </tr>
    </thead>
    <tbody>
    {% for rule in rules %}
        <tr>
            <th>{{ rule.distributors }}</th>
            <th>{{ rule.category }}</th>
            <th>{{ rule.price_level }}</th>
            <th>{{ rule.price_add }}</th>
            <th><a href="/export/pricerule?ruleid={{ rule.id }}">Видалити</a></th>
        </tr>
    {% endfor %}
    <tr>
        <form action="/export/pricerule" method="post">
            <th>
                <select name="distributors">
                    <option></option>
                    <option>stek</option>
                    <option>ug</option>
                    <option>mti</option>
                </select>
            </th>
            <th>
                <input name="category" type="text">
            </th>
            <th>
                <select name="price_level">
                    <option></option>
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                </select>
            </th>
            <th>
                <input name="price_add" type="text">
            </th>
            <th>
                <input type="submit" value="Додати">
            </th>
        </form>
    </tr>
    </tbody>
</table>
{{ error }}
</body>
</html>